
package com.monlyu.vo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.monlyu.annotation.Comment;

/*******************************************************************************
 * <b>功能描述☞</b>编辑方案表<br>
 * <b>开发公司☞</b>重庆唯尼科技有限公司<br>
 * <b>版权☞</b>本文件归重庆唯尼科技有限公司所有<br>
 * <b>项目名☞</b>news_cd<br>
 * <b>文件路径☞</b>com.monlyu.vo.Solution.java<br>
 * <b>开发日期☞</b>2011-6-25 <br>
 * 
 * @author chendan
 * @since JDK 5
 * @version 1.0.8
 ******************************************************************************/
@Entity(name = "t_solution")
public class Solution extends BaseVo {

    @Id
    @Column(name = "s_id")
    @Comment(common = "编号")
    private Long id;

    @Column(name = "s_name", length = MAX_VCHAR_MYSQL)
    @Comment(common = "方案名称")
    private String name;

    @Column(name = "s_issue", length = MAX_VCHAR_MYSQL)
    @Comment(common = "期号")
    private String issue;

    @Column(name = "s_date", nullable = false)
    @Comment(common = "出版日期")
    private Date date;

    @Column(name = "s_recorderDate")
    @Comment(common = "创建时间")
    private Date recorderDate;

    @ManyToOne
    @JoinColumn(name = "s_recorder")
    @Comment(common = "创建人")
    private User recorder;

    @Column(name = "s_status")
    @Comment(common = "审核状态：-1审核未通过，0未审核，1一审完毕，2二审完毕，3三审完毕，4审核完毕")
    private int status = 0;

    public Long getId(){
        return id;
    }

    public void setId(Long id){
        this.id = id;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    public String getIssue(){
        return issue;
    }

    public void setIssue(String issue){
        this.issue = issue;
    }

    public Date getDate(){
        return date;
    }

    public void setDate(Date date){
        this.date = date;
    }

    public Date getRecorderDate(){
        return recorderDate;
    }

    public void setRecorderDate(Date recorderDate){
        this.recorderDate = recorderDate;
    }

    public User getRecorder(){
        return recorder;
    }

    public void setRecorder(User recorder){
        this.recorder = recorder;
    }

    public int getStatus(){
        return status;
    }

    public void setStatus(int status){
        this.status = status;
    }

}
